﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MyWPF.Models.TCP.TCPServer
{
    public interface ITCPServer
    {
        /// <summary>
        /// 打开连接
        /// </summary>
        /// <param name="ServerContext"></param>
        void Connect(TCPServerContext ServerContext);
    }

    public class TCPServerContext
    {
        /// <summary>
        /// 监听的端口
        /// </summary>
        public int Port { get; set; }
    }
}
